﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<MensUnoShop.Models.NormalMarket>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>mailtofriend</title>
    <script src="/Scripts/jquery.min.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="/Content/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.css" media="screen" /> 
    <script type="text/javascript" src="/Content/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js"></script> 
    <link href="/Content/layout.css" rel="stylesheet" type="text/css" />

</head>
<script language="javascript" type="text/javascript">
    function MailToFriend() {
        $.post("/market/mailtofriend", {
            pname: $("#pname").attr("value"),
            pimg: $("#pimg").attr("value"),
            plink: $("#plink").attr("value"),
            fname: $("#fname").attr("value"),
            femail: $("#femail").attr("value"),
            mname: $("#mname").attr("value"),
            memail: $("#memail").attr("value"),
            memo: $("#memo").attr("value")
        }, function (result) {
            alert(result);
            parent.$.fancybox.close();
        });
    };
</script>
<body> 

    <div class="EMAIL_TO_FRIEND">
    <form id="form1" name="form1" class="vt" action="" method="post">    
    <%:Html.Hidden("pname", ViewData["TITLE"])%>
    <%:Html.Hidden("pimg", ViewData["IMG"])%>
    <%:Html.Hidden("plink", ViewData["MarketUri"])%>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><img src="/Content/page_img/TITLE_mail_to_friend.gif" width="500" height="47" /></td>
  </tr>
  <tr>
    <td ><table border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><div align="right">好友姓名Friend's name：</div></td>
        <td><%:Html.TextBox("fname", "", new { size = 15 })%></td>
        <td><div align="right">Email： </div></td>
        <td><%:Html.TextBox("femail", "", new { size = 30 })%></td>
      </tr>
      <tr>
        <td><div align="right">您的姓名Your name：</div></td>
        <td><%:Html.TextBox("mname", "", new { size = 15 })%></td>
        <td><div align="right">Email： </div></td>
        <td><%:Html.TextBox("memail", "", new { size = 30 })%></td>
      </tr>
      <tr>
        <td><div align="right">訊息Message：</div></td>
        <td colspan="3"><textarea name="memo" id="memo" cols="40" rows="5"></textarea></td>
        </tr>

    </table>      </td>
  </tr>
  <tr>
    <td ><div align="center">
        <p>
          <input type="button" name="button" id="button" value="送　出 Send" onclick="MailToFriend();" />
          <input type="button" name="button2" id="button2" value="關　閉 Close" onclick="parent.$.fancybox.close();" />
          
        </p>
        <p>&nbsp;  </p>
        <p>&nbsp;  </p>
        <p>&nbsp;  </p>
        <p>&nbsp;  </p>
        <p>&nbsp;  </p>
    </div></td>
  </tr>
</table>
</form>
</div>



</body>
</html>
